package com.zzl.bonds.ticket.constant.type;

/**
 * 操作日志 操作类型枚举值
 *
 * @author : spp
 * @date : 2022/2/23 10:30
 */
public enum OperateApplyTypeEnum {

    /**
     * 开单申请
     */
    OPEN(1, "开单申请"),
    TRANSFER(2, "转让申请"),
    FINANCE(3, "融资申请");


    private Integer code;
    private String value;


    OperateApplyTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (OperateApplyTypeEnum statusEnum : OperateApplyTypeEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
